import Vue from 'vue'
import Router from 'vue-router'
// ...............@符号指的是src这个文件夹
import Home from '@/pages/Home/home'
import City from '@/pages/City/City'
import Detail from '@/pages/Detail/Detail'
import Gallary from '@/common/Gallary/gallary'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path:'/city',
      name:'City',
      component: City
    },
    {
      path:'/detail/:id',
      name:'Detail',
      component:Detail
    },
    {
      path:'/gallary',
      name:'Gallary',
      component:Gallary
    }
  ]
})
